#!/bin/bash

floders=$(ls ${1}/)
for k in 1 3 5 10
do
    for floder in $floders 
    do
    files=$(ls ${1}/${floder}/)
        for file in $files 
        do
            input="${1}/${floder}/${file}"
	    echo ""	
	    time1=$(date)
	    echo ${time1}
	    echo "timeout 18000 ../Dve_candi_color_cn_2branch ${input} ${k} 10800 1>>./out/${floder}-k${k}.out"
	    timeout 18000 ../Dve_candi_color_cn_2branch ${input} ${k} 10800 1>>./out/${floder}-k${k}.out
        done
    done
done
